#! /usr/bin/env python
# -*- coding: utf-8 -*-

"""
"""


class Solution:
    """
    @param n: An integer
    @return: A list of strings.
    """

    # 1表示不能整除
    first_15 = [
        "fizz buzz",
        1,           1,      "fizz",
        1,           "buzz", "fizz",
        1,           1,      "fizz",
        "buzz",      1,      "fizz",
        1,           1,
    ]

    def fizzBuzz(self, max):
        l = []
        for num in range(1, max+1):
            l.append(self.get_f_b(num))

        return l

    def get_f_b(self, num):
        remain = num % 15
        value = self.first_15[remain]

        if value == 1:
            value = num

        return str(value)


def main():
    print("start main")
    s = Solution()
    l = s.fizzBuzz(30)
    print(l[0:15])
    print(l[15:])

if __name__ == "__main__":
    main()
